WooCommerce\PayPalCommerce\Button\Assets\SmartButton D

Total Complexity 216
Dependencies 26
Dependents 0
Total lines 1,318
Lines of code 780
Logical lines of code 312
Comment lines 359
Methods 37
Properties 18

Methods 37

Method Rating Maintainability Complexity Lines of code
url()
C
37 30 62
render_wrapper()
B
35 19 97
render_button_wrapper_registrar()
B
39 19 73
message_values()
B
44 17 38
localize_script()
A
31 10 126
enqueue()
A
45 11 44
render_message_wrapper_registrar()
A
46 10 43
style_for_context()
A
52 8 24
load_button_component()
A
58 8 16
context()
S
58 7 16
dcc_is_enabled()
S
57 6 19
message_renderer()
S
61 6 13
components()
S
58 5 17
is_paypal_continuation()
S
60 5 14
can_render_dcc()
S
74 5 4
can_save_vault_token()
S
66 5 9
get_vaulted_paypal_email()
S
60 4 13
has_subscriptions()
S
63 4 12
dcc_renderer()
S
58 3 16
button_renderer()
S
63 4 10
product_supports_payment()
S
61 3 12
has_in_stock_variation()
S
68 3 8
payerData()
S
68 3 7
normalize_height()
S
68 3 9
get_3ds_contingency()
S
67 3 9
__construct()
S
55 1 19
is_cart_price_total_zero()
S
78 2 3
bn_code_for_context()
S
74 2 4
get_payment_tokens()
S
71 2 6
checkout_button_renderer_hook()
S
79 1 3
checkout_dcc_button_renderer_hook()
S
79 1 3
pay_order_renderer_hook()
S
79 1 3
proceed_to_checkout_button_renderer_hook()
S
72 1 6
mini_cart_button_renderer_hook()
S
72 1 6
single_product_renderer_hook()
S
79 1 3
attributes()
S
74 1 5
bn_codes()
S
68 1 8